← Back to All APIs

Posts API

Blog posts with comments and author information

Base URL
https://fakeapi.in/api/posts

API Endpoints

GET/api/posts

Get all posts

GET/api/posts/1

Get post by ID

POST/api/posts

Create post

PUT/api/posts/1

Update post

DELETE/api/posts/1

Delete post

Example Usage

// Get all posts
fetch('https://fakeapi.in/posts')
  .then(response => response.json())
  .then(posts => console.log(posts));

// Create a new post
fetch('https://fakeapi.in/posts', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    title: 'My New Post',
    content: 'This is the content of my post...',
    authorId: 1
  })
})
.then(response => response.json())
.then(post => console.log(post));

Example Response

 {
      "id": 1,
      "title": "Charisma cattus utrum dedico vespillo.",
      "content": "Vindico uter voluntarius sono. Fugiat tenetur voluptatibus earum ipsa. Verumtamen aureus baiulus similique vilitas.
       Sono cupiditas delicate bis ager debilito alienus ambitus ter. Anser eveniet tardus. Audio argentum possimus turbo decet.",
      "author": "Jermaine Willms",
      "category": "Education",
      "likes": 797,
      "comments": 175,
      "publishedAt": "2025-10-19T13:29:54.519Z",
      "createdAt": "2024-10-23T03:27:50.255Z"
    }

Quick Actions

Test in Playground

API Status

StatusOperational
Rate Limit1000 requests/hour
Response FormatJSON
Posts API - Blog & Content Management Documentation | FakeAPI.in